package com.zhang.bingmei_incomeexpenditure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhang.bingmei_incomeexpenditure.entity.TGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper  // 标识为MyBatis映射接口
public interface TGoodsMapper extends BaseMapper<TGoods> {

    // 查询t_goods表所有数据
    @Select("select * from t_goods")
    List<TGoods> findAll();
}